package leetcode;

public class Q0172 {
    public int trailingZeroes(int n) {
        int res = 0;
        while (n != 0) {
            n /= 5;
            res += n;
        }
        return res;
    }

    public static void main(String[] args) {
        Q0172 sl = new Q0172();
        System.out.println(sl.trailingZeroes(10));
    }
}
